package com.hj.serviceImpl;

import com.hj.entity.ExcelBean;
import com.hj.mapper.TestMapper;
import com.hj.service.TestService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by hj on 2019/1/22.
 */
@Service
@Transactional
public class TestServiceImpl implements TestService {

    @Resource
    private TestMapper testMapper;

    @Override
    public void saveBatch(List<ExcelBean> excelBeans) {
            testMapper.insert((ExcelBean) excelBeans);
    }
}
